<?php
namespace app\common\controller;
use app\common\controller\Appbase;

// +----------------------------------------------------------------------
// | XpCms
// +----------------------------------------------------------------------
// | Copyright (c) 2021-2099
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Mercurio（Xp） <725668993@qq.com>
// +----------------------------------------------------------------------

/*
** 前台基类控制器
*/

class Homebase extends Appbase {
	
	protected $current_action;
	
	// 优先加载
	public function  _initialize() {
		parent::_initialize();
		if (!is_file(APP_PATH.'common/install.lock')) {	
			header("Location: /install");
			exit;
		}
		
	}
	
    //空操作
    public function _empty(){
        return $this->error('空操作，返回上次访问页面中...');
    }
	
}
